from month_99.Page.Page1 import Page1
from selenium.webdriver.common.by import By

class Page2(Page1):
    shouye_loc = (By.XPATH,'/html/body/div[3]/div[2]/ul/li[1]/a')
    def shouye(self):
        self.click(self.shouye_loc)

    search_loc = (By.XPATH,'//input[@class="search-input" and @name="keywords"]')
    def search(self):
        self.send_keys(self.search_loc,'非洲之心')

    searchbtn_loc = (By.CLASS_NAME,'search-input-btn')
    def searchbtn(self):
        self.click(self.searchbtn_loc)

    img_loc = (By.XPATH,'/html/body/div[5]/div[2]/div[2]/div[1]/ul/li/div[1]/span/a/img')
    def img(self):
        self.click(self.img_loc)

    add_loc = (By.ID,'add-cart')
    def add(self):
        self.click(self.add_loc)
